package com.realtyManage.springboot.Dao;


import com.realtyManage.springboot.Model.Do.Area;
import com.realtyManage.springboot.Model.Do.SysLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.Date;
import java.util.List;

/**
 * 城市设置
 *
 * @author 杭州素色网络科技有限公司
 * @since 2019-09-06
 */

@Repository
public interface AreaRepository extends JpaRepository<Area, Integer>, JpaSpecificationExecutor<Area> {

    @Transactional
    @Modifying
    @Query(value="delete area where id in (?1) ",nativeQuery=true)
    int deleteArea(String areaId);

}
